package com.gla.giliair.service;

import com.gla.giliair.entity.Customer;
import com.gla.giliair.entity.Flight;
import com.gla.giliair.entity.FlightExample;
import com.gla.giliair.entity.Seat;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: Yingtian qian
 * @Date: 2021/8/25 20:48
 */
public interface SeatService {

    Seat selectSeatById(Long seatId);

    List<Seat> selectSeatsByFlightId(Long flightId);

    Map<String, Object> findSeatsByFlightId(Long flightId, Integer page, Integer pageSize);

    Map<String, Object> findSeatsWithOrderByFlightIdAndIDNumber(Long flightId, String IDNumber, Integer page, Integer pageSize);

    Map<String, Object> selectSeat(Seat seat, Long userId);

    Map<String, Object> cancelSeat(Seat seat, Long userId);

    Map<String, Object> lockSeat(Seat seat);
}
